// MFCPokerDoc.h : interface of the CMFCPokerDoc class
//


#pragma once

#include "Poker.h"
#include "player.h"
#include "PokerDialog.h"
#include <vector>


class CMFCPokerDoc : public CDocument
{
protected: // create from serialization only
	CMFCPokerDoc();
	DECLARE_DYNCREATE(CMFCPokerDoc)

// Attributes
public:

// Operations
public:
	void play(int nPlayers);
	void preflop();
	void flop();
	void turn();
	void river();
	int winner();
	std::vector<card> getGroundCards();
	std::vector<player> getPlayers();

// Overrides
public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
#ifdef SHARED_HANDLERS
	virtual void InitializeSearchContent();
	virtual void OnDrawThumbnail(CDC& dc, LPRECT lprcBounds);
#endif // SHARED_HANDLERS

// Implementation
public:
	virtual ~CMFCPokerDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()

#ifdef SHARED_HANDLERS
	// Helper function that sets search content for a Search Handler
	void SetSearchContent(const CString& value);
#endif // SHARED_HANDLERS


private:
	Poker p;
};